#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File    : login.py
# @Time    : 2021/10/4 15:59
# @Author  : Karl·Marx

from bases.work_wenxin_base import WorkWeiXinBase


class WorkerLogin(WorkWeiXinBase):

    def login(self, params):
        desc = '企业微信登录接口'
        route = 'cgi-bin/gettoken'
        resp = self.send_get(desc, route, params=params)
        return resp
